package com.eurabia.eggchat.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.eurabia.eggchat.pojo.SysEggchatUserReply;
import com.eurabia.eggchat.pojo.form.SysEggchatUserReplyForm;
import com.eurabia.eggchat.pojo.query.SysEggchatUserReplyQuery;

/**
 * SysEggchatUserReplyDao 
 */
@Mapper
public interface SysEggchatUserReplyDao {
    
    /**
     * 查询 SysEggchatUserReply
     */
    List<SysEggchatUserReply> find(final SysEggchatUserReplyQuery query);

    /**
     * 通过id得到一个 SysEggchatUserReply
     */
    SysEggchatUserReply get(final String id);
    
    /**
     * 新增 SysEggchatUserReply
     */
    void add(final SysEggchatUserReplyForm form);

    /**
     * 修改 SysEggchatUserReply
     */
    int update(final SysEggchatUserReplyForm form);
    
    /**
     * 删除一个 SysEggchatUserReply
     */
    int delete(final String id);
    
    /**
     * 修改是否可用
     */
    int changeEnabled(@Param("id") final String id, @Param("enabled") final Integer enabled);
}